is_viewable()){ redirect_to('/news_overview.html'); } } else{ redirect_to('/news_overview.html'); } MembersPageViews::add_view_history($article_id,'Article',$article->formatted_headline(),$article->this_url(),$article->Article_Date); $comment_submit = get_or_post_value('comment_submit'); $comment_submit_x = get_or_post_value('comment_submit_x'); $comment_text = get_or_post_value('comment_text'); if($comment_submit || $comment_submit_x ){ if(!($comment_text) || ($comment_text == "Type your comment here...")){ $comment_error_text="Please Enter A Comment."; } else{ $new_comment = new NewsArticlesComments; $new_comment->comment_about_id = $article_id; $new_comment->comment_text = $comment_text; if(!$session->is_logged_in()){ $new_comment->guest = 1; $new_comment->member_id = $_COOKIE['MEMBER_ID']; } else{ $new_comment->guest = 0; $new_comment->member_id = $_SESSION['member_id']; } $new_comment->save(); $article->increment_comment_count(); if(!$session->is_logged_in()){ $redirect_url = '/sign_in.html'; $_SESSION['sign_in_message'] = "Don't worry, we've saved your comment, but to post it you will need to log in to your account or register."; } else{ $redirect_url = $article->news_url(); } redirect_to($redirect_url); } } $article_comments = NewsArticlesComments::find_all_by_comment_about_id($article_id); if($session->is_logged_in()){ NewsArticlesComments::update_last_visit($article_id,$session->logged_in_user->member_id); } $articles_on_page = NewsArticles::extract_article_ids($article); $related_news = $article->related_news_block($articles_on_page); $articles_on_page = NewsArticles::extract_article_ids($related_news,$articles_on_page); $more_from_category = $article->more_from_category(4,$articles_on_page); //$article->increment_view_count(); // MembersInterests::add_interest($article->categories); $print_css = 1; $page_title = "Police Oracle - {$article->formatted_headline()}"; include(SITE_ROOT . "/includes/load_time_checkpoint.php"); include_once("../header_cache.html"); $checkpoint_name = "After Header"; include(SITE_ROOT . "/includes/load_time_checkpoint.php"); ?>
Article is flagged with the following categories | ||||
---|---|---|---|---|
Cateogry ID | Category Name | Parent | Rank Related | Force Related | {$cat_details->category_id} | {$cat_details->category_name} | {$cat_details->parent} | {$cat_details->rank_related} | {$cat_details->force_related} | CATEGORY_LINE; } ?>